package org.langqiao.date;

import java.text.SimpleDateFormat;
import java.util.Date;

public class TimeFormat {
	
	public static void main(String[] args){
		SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		//SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date date = new Date(System.currentTimeMillis());
		String time = format.format(date);
		System.out.println(time);
	}

}
